package com.sui.bigdata.sml.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * @author songhaicheng
 * @date 2019/11/19 10:57
 * @description
 * @reviewer
 */
@RestController
@CrossOrigin
@RequestMapping("/web")
@Slf4j
public class BaseController {

    @GetMapping
    ResponseEntity hello() {
        // 可用于服务健康检测用
        log.info("Web 服务健在，感觉良好！");
        return new ResponseEntity<>("Hello World", HttpStatus.OK);
    }

}
